﻿using System.Xml.Serialization;

namespace WinformUpperDataCollections.Models
{
    /// <summary>
    /// 寄存器参数类型
    /// </summary>
    [XmlRoot("ParaInfo")]
    public class ParaInfo
    {
        /// <summary>
        /// 参数名
        /// </summary>
        [XmlElement("ParaName")]
        public string ParaName { get; set; }

        /// <summary>
        /// 从站地址
        /// </summary>
        [XmlElement("SlaveId")]
        public byte SlaveId { get; set; }

        /// <summary>
        /// 寄存器地址
        /// </summary>
        [XmlElement("Address")]
        public ushort Address { get; set; }

        /// <summary>
        /// 参数的数据类型
        /// </summary>
        [XmlElement("DataType")]
        public string DataType { get; set; }

        /// <summary>
        /// 小数点后的位数
        /// </summary>
        [XmlElement("DecimalCount")]
        public int DecimalCount { get; set; }
    }
}
